package com.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.common.domain.dto.ExchangeLogDto;
import com.common.domain.entity.ExchangeLog;
import com.common.domain.entity.ResponseResult;
import com.common.domain.vo.ExchangeLogVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExchangeLogMapper extends BaseMapper<ExchangeLog> {
    Long getExchangeCount(@Param("goodsId") Long goodsId);

    List<ExchangeLogVo> getUserExchangeLog(ExchangeLogDto exchangeLogDto);
}
